package com.zengqingfa.springboot.validation.demo.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @fileName: Job
 * @author: zengqf3
 * @date: 2020-10-6 19:24
 * @description:
 */
@Data
public class Job {

    private Long jobId;

    @NotEmpty(message = "jobName不能为空")
    private String jobName;
}
